package com.hy.heath.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class HealthRecord {
    @TableId(type = IdType.AUTO)
    private Integer recordId;
    @TableField("user_id")
    private Integer userId;
    @TableField("record_type")
    private String recordType;
    private String hospital;
    private String department;
    @TableField("doctor_name")
    private String doctorName;
    private String diagnosis;
    private String treatment;
    @TableField("record_date")
    private LocalDate recordDate;
    @TableField("created_at")
    private LocalDateTime createdAt;
    @TableField(exist = false)
    private User user;
}

